﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VERKProjectHopur16.Models.PictureModel>" %>

    <% using (Html.BeginForm("Upload", "User", FormMethod.Post, new { enctype="multipart/form-data" }))
       {%>
        <%: Html.ValidationSummary(true)%>

        <fieldset>
         
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PictureText) %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.PictureText) %>
                <%: Html.ValidationMessageFor(model => model.PictureText) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.PictureDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PictureDate, new { @id = "form-birthdate" })%>
                <%: Html.ValidationMessageFor(model => model.PictureDate)%>
            </div>

            <p>
                <input name="ImageUploaded" type="file" />
            </p>
            <p>
                <input type="submit" value="Upload" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back", "ChildProfile")%>
    </div>


